import localStore from '../../js/LocalStore.js';

const common = {
	namespaced: true,
	state: {
		customer_index_v2: null,  // pages/customer/index_v2  页面中当前客户信息
		appointmentData: null,     // 预约数据
		cmpany_info: {},
	},
	mutations: {
		set_customer_index_v2(state, value) {
			console.log('set_customer_index_v2', value)
			state.customer_index_v2 = value
		},
		setAppointmentData(state, value) {
			console.log('setAppointmentData== common.js ==', value)
			state.appointmentData = value
		},
		clearAppointmentData(state) {
			state.appointmentData = null
		},
		set_cmpany_info(state, value) {
			state.cmpany_info = value
		},
	},
	getters: {
		customer_index_v2(state) {
			return state.customer_index_v2
		},
		appointmentData(state) {
			return state.appointmentData
		},
		cmpany_info(state) {
			return state.cmpany_info
		},
	},
	actions: {}
}

export default common 